﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SdlDotNet.Graphics;
using SdlDotNet.Graphics.Sprites;

namespace Pokemon
{
    class Map
    {
        public int xPos;
        public int yPos;
        public List<Tile[,]> Layers = new List<Tile[,]>();
        public List<Warp> Warps = new List<Warp>();

        public void Draw(int ox, int oy)
        {
            foreach (Tile[,] Tilemap in Layers)
            {
                for (int x = 0; x < Tilemap.GetLength(0); x++)
                {
                    for (int y = 0; y < Tilemap.GetLength(1); y++)
                    {
                        Tilemap[x, y].Draw(ox + xPos * 15 + x * 16, oy + yPos * 10 + y * 16);
                    }
                }
            }
        }
    }
}
